<!DOCTYPE html>
<html>
        <head>
                <meta charset="utf-8">
                <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
                <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
                <link rel="stylesheet" type="text/css" href="../../css/aui.css">
                <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css">
                <link rel="stylesheet" type="text/css" href="../../css/api.css" />
                <link rel="stylesheet" type="text/css" href="../../css/common.css">
                <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.5.css">
                <script type="text/javascript" src="../../script/api.js"></script>
</head>
<body>
    <div class="all">
        <div class="top" style="height: 3.5rem;">
                <span class="aui-iconfont aui-icon-left" style="float: left;margin: 1rem 0.5rem;font-size: 1.3rem;" tapmode onclick="api.closeWin()"></span>
            <span class="title" >设 置</span>
        </div>
        <div class="main">
                <ul class="set_item" style="margin-top: 0.33rem">
                    <li tapmode onclick="opanperson_info()"><span  class="set_item_text">个人信息</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                    <li tapmode onclick="opansecurityCenter()"><span class="set_item_text" >安全中心</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                    <li tapmode onclick="opanorder_bd()"><span class="set_item_text">订单号绑定</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                    <li  tapmode onclick="opanaddress_list()"><span class="set_item_text">收货地址</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                </ul>
                <ul class="set_item" style="margin-top: 0.4rem">
                    <li onclick="clearnh()"><span class="set_item_text" >清除缓存</span><span id="cacheSize" style="float: right;margin: 0.7rem 1.2rem;"></span></li>
                    <li tapmode onclick="opanapp_upd()"><span class="set_item_text">版本更新</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                    <li tapmode onclick="opananswer()"><span class="set_item_text">问题反馈</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                    <li tapmode onclick="opanab()"><span class="set_item_text">关于芒客</span><span class="aui-iconfont aui-icon-right" style="float: right;margin: 0.8rem 1rem;font-size: 1rem;"></span></li>
                </ul>
            <div class="share"  onclick="share1();" >
                
                <img class="share_img" src="../../image/share.png">
                <span>觉得芒客不错</span>
                <span>邀请好友一起赚钱</span>
            </div>
            <div class="btn">
                <button class="exit" onclick="outee()">退出登录</button>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    apiready = function(){   

      
     






        window.opanab = function() {
               
               api.openWin({
               name: 'opanab',
               url: '../mine/about.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }
      
        window.opanorder_bd = function() {
               
               api.openWin({
               name: 'opanorder_bd',
               url: '../mine/order_bd.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }

               api.getCacheSize(function(ret, err) {
            //size:        //缓存大小，单位为Byte，数字类型。（-1：无存储设备、-2：正在准备USB存储设备、-3：无法访问存储设备）
            var size = parseInt(ret.size/1024) + 'KB';
            var cacheSize = $api.byId('cacheSize');
            cacheSize.innerHTML = size;

        });

       window.clearnh = function (){
         
        api.clearCache(function() {
            api.toast({
                msg: '清除完成'
            });
        });
        api.getCacheSize(function(ret, err) {
            var size = parseInt(ret.size/1024) + 'KB';
            var cacheSize = $api.byId('cacheSize');
            cacheSize.innerHTML = size;
        });
    };
               window.opansecurityCenter= function() {
               
               api.openWin({
               name: ' securityCenter',
               url: '../mine/securityCenter.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }
              
               
        window.opanaddress_list = function() {
               
               api.openWin({
               name: 'address_list',
               url: '../mine/address_list.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }

         window.opanperson_info = function() {
               
               api.openWin({
               name: 'person_info',
               url: '../mine/personalinfo.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }
               window.opanapp_upd = function() {
               
               api.openWin({
               name: 'app_upd',
               url: '../mine/app_upd.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }


               window.opananswer = function() {
               
               api.openWin({
               name: 'answer',
               url: '../mine/answer.html',
               rect: {
                   x: 0,
                   y: 0,
                   w: 'auto',
                   h: 'auto'
               },
               pageParam: {
                   token: $api.getStorage('token')
               },
               allowEdit: true
           });
                  
               }  

              
               shareaction = api.require('shareAction');

id = $api.getStorage('uid');
}

function share1(){
shareaction.share({
    text:'购物省钱，推广赚钱，免费注册还送500集分宝，购物即享受最高50%的返利，并有区块链属性的芒客币相送，社交，游戏即将上线，赶紧注册吧！ http://www.mk517.com'
});
}

function share(){
shareaction.share({
    text:'购物省钱，推广赚钱，免费注册还送500集分宝，购物即享受最高50%的返利，并有区块链属性的芒客币相送，社交，游戏即将上线，赶紧注册吧！ http://www.mk517.com'
})

            
    }
  </script>
</html>